﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace leodesigner
{
    public partial class LogView : WeifenLuo.WinFormsUI.Docking.DockContent
    {
        public LogView()
        {
            InitializeComponent();
        }

        public void SetTextFromLog()
        {
            if (interop.server.log_changed())
            {
                richTextBox1.Text = interop.server.get_log();
                richTextBox1.SelectionStart = richTextBox1.Text.Length;
                richTextBox1.SelectionLength=0;
                richTextBox1.ScrollToCaret();
            }
        }
    }
}
